-- Leviathan (c) v.v.balashoff
local Class = require('leviathan/Class')

local DomainSwitcherComponent = Class:derive('DomainSwitcherComponent')

function DomainSwitcherComponent:new(name, from, to, keep)
    -- keep - if true, keep old domain, otherwise delete it
    self.id = 'DomainSwitcherComponent'
    self.typeId = 'Core'
    self.drawable = false
    self.enabled = false

    self.name = name or self.id
    self.domainFrom = from
    self.domainTo = to
    self.keep = keep
end

return DomainSwitcherComponent
